<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
	String basePath = request.getContextPath();
	String path = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+basePath+"/";
	request.setAttribute("path",path);
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
	<meta name="format-detection" content="telephone=no,address=no,email=no"/>
	<meta name="keywords" content="" />
	<meta name="description" content="" />
	<title>登陆</title>
	<script type="text/javascript" src="${path}/school/js/jquery.js"></script>
	<script type="text/javascript" src="${path}/js/jquery-2.1.1.min.js"></script>
	<link href="${path}/school/css/style.css" rel="stylesheet" media="all">
	<link rel="shortcut icon" href="${path}/school/img/favicon.png">
</head>
<body>
	<header class="top_header">
		<h1><a href="javascript:history.go(-1);" class="go_back"></a><span class="black_text">登陆</span></h1>
	</header><!-- header -->
	<div class="content_wrap login_register" id="login_wrap">
		<div class="logo_wrap"><a href="#"><img src="${path}/school/img/logo02.png"></a></div><!-- logo_wrap -->
		<form id="login_form" action="${path}/toKaLogin" method="post" class="logreg_form">
			<input id="resp" name="resp" style="display: none" value="${resp}">
			<p class="form_txt">
				<input class="num_input" value="输入手机码" type="text" name="phone" id="dn" required onFocus="if(value==defaultValue){value='';this.style.color='#000'}" onBlur="if(!value){value=defaultValue;this.style.color='#999'}" style="color:#999999" >
				<input class="clear_input" type="button" id="cls" value="" onclick="document.getElementById('dn').value = '';" />
			</p>
			<p class="form_txt">
				<input class="num_input" placeholder="输入密码" type="password" name="password" id="mm" required onFocus="if(value==defaultValue){value='';this.style.color='#000'}" onBlur="if(!value){value=defaultValue;this.style.color='#999'}" style="color:#999999">
				<input class="clear_input" type="button" id="cls" value="" onclick="document.getElementById('mm').value = '';" />
			</p>			
			<p class="login_button">
				<a class="go_register" href="${path}/kaRegister">注册</a>
				<input class="login_but" id="login_but" type="submit" value="登录" />
				<span class="clear"></span>
			</p>
			<p class="login_txt"><a href="./kaForgetPwd" ><span style="color:red;font-size:14px;">忘记密码?</span></a></p>
        </form>
	</div><!-- content_wrap -->
	
	<div class="register_txt">
		登录表示您同意<a href="${path}/kaAgreement">《喀嗒用户协议》</a>
	</div><!-- register_txt -->
	<div class="footer_copyright">
		<p><span>苏州知行合一网络科技有限公司</span>提供技术支持，版权所有</p>
	</div><!-- footer_copyright -->

	
</body>
<script>
    $(window).load(function() {
        var resp = $('#resp').val()
        if (resp == 10) {
            alert('账号或者密码错误!');

        } else if (resp == 2) {
            alert('修改密码成功!');

        } 
    });
</script>
</html>